import {TitleMarker, TitleMarkerItem, TitleMarkerName} from "@/components/TipMarker";
import {ApplicationConfig} from "@/config/interface";

const DefaultConfig: ApplicationConfig = {
    map: {
        key: '764ec790ac9a63dce2a37502099e24bb',
        securityJsCode: '207a5bcb7f0c2cee6ed27ac210484457',
        mapStyle: 'amap://styles/46ba015d1d31ff1a490f24c176305f89',
        components: {
            resource: {
                types: [],
                modals: {
                    Default: {
                        title: "{name}",
                        tabs: [
                            {
                                url: "https://shuzhi-public.tourage.cn/resourceModel?apiURL={apiUrl}&id={id}&type={type}&token={token}",
                                height: 696
                            }
                        ]
                    },
                }
            },
            scenic: {
                marker: {
                    render: (item: any) => <TitleMarker content={
                        <>
                            <TitleMarkerName name={item.name}/>
                            <TitleMarkerItem
                                title="实时客流："
                                color="#F7B500"
                                count={item.current || 0}
                                unit="人"
                            />
                            <TitleMarkerItem
                                title="累计客流："
                                color="#32c5ff"
                                count={item.DAY || 0}
                                unit="人"
                            />
                        </>
                    }/>,
                    offsetHeight: -147
                }
            }
        }
    }
}

export default DefaultConfig;